<?php

class Application_Forms_Tag extends Zend_Form
{
    public function init()
    {
        $this->setName('tag');

        /* Hiden field, some field use in future extend */
        
        $tag_id = new Zend_Form_Element_Hidden('tag_id');
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');
        
        /* Visible field */

        $tag_text = new Zend_Form_Element_Text('tag_text');
        $tag_text->setLabel('Tag')
              ->setRequired(true)
              ->addFilter('StripTags')
              ->addValidator('NotEmpty');

        $this->addElements(array($tag_id, $tag_text, $submit));
    }
}